package record;

import com.jfinal.core.Controller;

import java.util.Date;

public class recordController extends Controller {

    private recordService srv = recordService.me;

    public void index() {
        render("index.html");
    }

    public void editEmp() {
//        int id = getParaToInt("id");
        String username = getPara("username");
        String pwd = getPara("pwd");
        String gender = getPara("gender");
        Date birthday = getDate("birthday");
        String idCard = getPara("idCard");
        String area = getPara("area");
        String nativePlace = getPara("nativePlace");

        renderJson(srv.editEmp(username, pwd, gender, birthday, idCard, area, nativePlace));
    }
}
